﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        enum renwu
        {
            刘备=1,
            孙权,
            曹操


        }
        enum youxi { 
            剪刀=1,
            石头,
            布

        
        }
        static void Main(string[] args)
        {
            Class1kobai kobai = new Class1kobai();
            Class1kobai.aa1();
            Console.WriteLine("请选择对方角色（1：刘备 2：孙权 3：曹操）");
            string a = Console.ReadLine();
            renwu jue = (renwu)Enum.Parse(typeof(renwu), a);
            Console.WriteLine("请输入您的姓名:");
            string b = Console.ReadLine();
            switch (jue)
            {
                case renwu.刘备:
                    Console.WriteLine("{0} VS {1} 对战",b,jue);
                    Console.WriteLine("开始游戏吗？<y/n>");
                    string c = Console.ReadLine();
                    Console.WriteLine("出拳规则：1.剪刀 2.石头 3.布（输入相应数字：）");
                    string x = Console.ReadLine();
                    youxi youxi = (youxi)Enum.Parse(typeof(youxi), x);
                    Class1kobai.aa2();
                    switch (youxi)
                    {
                        case Program.youxi.剪刀:
                            
                            Console.WriteLine("{0};出拳:{1}",b,youxi);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();
                            int sum1 = 1;
                            int sum2 = 2;
                            int sum3 = 3;
                            if ()
                            {

                            }
                            break;
                        case Program.youxi.石头:
                            
                            Console.WriteLine("{0};出拳:{1}", b, youxi);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();
                            break;
                        case Program.youxi.布:
                            
                            Console.WriteLine("{0};出拳:{1}", b, youxi);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();
                            break;
                        default:
                            break;
                    }
                    break;
                case renwu.孙权:
                    Console.WriteLine("{0} VS {1} 对战", b, jue);
                    Console.WriteLine("开始游戏吗？<y/n>");
                    string d = Console.ReadLine();
                    Console.WriteLine("出拳规则：1.剪刀 2.石头 3.布（输入相应数字：）");
                    string x2 = Console.ReadLine();
                    youxi youxi2 = (youxi)Enum.Parse(typeof(youxi), x2);
                    Class1kobai.aa2();
                    switch (youxi2)
                    {
                        case Program.youxi.剪刀:

                            Console.WriteLine("{0};出拳:{1}", b, youxi2);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();

                            break;
                        case Program.youxi.石头:

                            Console.WriteLine("{0};出拳:{1}", b, youxi2);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();
                            break;
                        case Program.youxi.布:

                            Console.WriteLine("{0};出拳:{1}", b, youxi2);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();
                            break;
                        default:
                            break;
                    }
                    break;
                 
                case renwu.曹操:
                    Console.WriteLine("{0} VS {1} 对战", b, jue);
                    Console.WriteLine("开始游戏吗？<y/n>");
                    string f= Console.ReadLine();
                    Console.WriteLine("出拳规则：1.剪刀 2.石头 3.布（输入相应数字：）");
                    string x3 = Console.ReadLine();
                    youxi youxi3 = (youxi)Enum.Parse(typeof(youxi), x3);
                    Class1kobai.aa2();
                    switch (youxi3)
                    {
                        case Program.youxi.剪刀:

                            Console.WriteLine("{0};出拳:{1}", b, youxi3);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();

                            break;
                        case Program.youxi.石头:

                            Console.WriteLine("{0};出拳:{1}", b, youxi3);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();
                            break;
                        case Program.youxi.布:

                            Console.WriteLine("{0};出拳:{1}", b, youxi3);
                            Console.WriteLine("{0};出拳:", jue);
                            Class1renwu.bb2();
                            break;
                        default:
                            break;
                    }
                    break;
            
                default:
                    break;
            }
        }
    }
}
